package homework;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.stream.Collectors;

public class zy6 {
	public static void main(String[] args) {
		ArrayList<Character> arrayList = new ArrayList<Character>();
		HashMap<Character, Integer> map=new HashMap<>();
		Collections.addAll(arrayList, 'a','a','a','b','b','c');
		
		arrayList.stream().collect(Collectors.toSet()).stream().collect(Collectors.toList())
		.forEach(System.out::print);
	}
}
